package tree;

public class CALL extends BasicExp {
  public BasicExp func;
  public ExpList args;
  public CALL(BasicExp f, ExpList a) {
	  func=f;
	  args=a;
  }
  public int argCnt() {
	  int c = 0;
	  for (ExpList el = args; el != null; el = el.tail) c++;
	  return c;
  }
  public ExpList kids() {return new ExpList(func,args);}
  public BasicExp build(ExpList kids) {
    return new CALL(kids.head,kids.tail);
  }
  
}

